package com.example.libary.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.libary.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 图书Mapper接口
 */
@Mapper
public interface BookMapper extends BaseMapper<Book> {
    
    /**
     * 分页查询图书（包含分类名称）
     */
    Page<Book> selectBookPageWithCategory(Page<Book> page, 
                                         @Param("name") String name,
                                         @Param("author") String author,
                                         @Param("categoryId") Long categoryId,
                                         @Param("status") String status);
} 